package com.nkym.wypan.model.req.fileinfo;/*
 * @ClassName SecUploadReq
 * @Desc TODO
 * @Author 19637
 * @Date 2023/6/10 22:13
 * @Version 1.0
 */

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class SecUploadReq  implements Serializable {
    /**
     * 唯一标识符
     */
    @NotBlank(message = "标识符不能为空")
    private String identifier;
    /**
     * 所在目录
     */
    @NotNull(message = "所在目录不能为空")
    private Long parentId;
    /**
     * 文件大小
     */
    @NotNull(message = "文件大小参数不能为空")
    @Min(value = 0, message = "文件大小不合法")
    private Long fileSize;

    @NotBlank(message = "文件名不能为空")
    private String filename;
    private static final long serialVersionUID = 1L;
}
